
import {mapActions,mapGetters,mapMutations} from 'vuex';
// var vm = this;
export default {
    // vm:this,
    data(){
        return {
            msg:"detail component",
            dataList:'',
            myMode:"111"
        }
    },
    created:function(){


    },
    methods:{
      ...mapActions(["act_changeMode"]),
      ...mapMutations(["mut_changeMode"]),
        reqData:function(){
            this.axios.get('src/data.json').then((response) => {
                console.log(response.data.detail);
                this.dataList = response.data.detail;
            })
        },
        changeMode:function(){
          console.log(this.myMode);
          this.act_changeMode("this.myMode");
        },
        getData:function(){

        }
    },
    computed:{
      ...mapGetters(["getMode"])
    }
}
